package dockyin.structure.pattern.facade;

public class Computer {
    private CPU cpu;
    private RAM ram;
    private Disk disk;

    public Computer() {
        cpu = new CPU();
        ram = new RAM();
        disk = new Disk();
    }

    public void start() {
        cpu.start();
        ram.start();
        disk.start();
    }

    public void stop() {
        disk.stop();
        ram.stop();
        cpu.stop();
    }
}
